package com.soteind.system.notifications;

import com.soteind.system.notifications.Email;
import java.util.ArrayList;
import java.util.List;
import java.util.TimerTask;

/**
 *
 * @author David Mantilla
 */
public class NotifierTimerTask extends TimerTask {
    private List<Email> emails = new ArrayList<Email>();

    @Override synchronized  public void run(){
//        if ( !emails.isEmpty() ){
//            EPGEmailSender hseqEmailSender = new EPGEmailSender();
//            hseqEmailSender.send(emails);
//            emails = hseqEmailSender.getNotSentEmails();
//        }
    }
    public synchronized List<Email> getEmails(){
        return emails;
    }

}

